package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jt.annontation.ExcelColumn;
import com.jt.annontation.ExcelSheet;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 用户表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
@ExcelSheet(name="用户")
@Accessors(chain = true)
public class User extends ZdTime implements Serializable {
    @TableId
    @ExcelColumn(name="id", order = 1)
    private String id;

    @TableField(value = "username")
    private String username;

    @TableField(value = "sex")
    private String sex;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "state")
    private String state;

    @TableField(value = "carId")
    private String carId;

    @TableField(value = "policeMember")
    private String policeMember;

    @TableField(value = "password")
    private String password;

    @TableField(value = "roleId")
    private String roleId;

    @TableField(value = "deptId")
    private String deptId;

    @TableField(value = "deleteType")
    private String deleteType;

    @TableField(exist = false)
    private  String roleName;

    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    private List<Role> roles;
}
